{template header}
<div class="path">
	<span>兑换管理</span>
</div>
<div class="content">
	<div class="c1">
	<form action="swap-delete.htm" method="post">
	      <table width="100%" border="0" cellspacing="1" cellpadding="2" class="table1" style="text-align:center">
	        <tr>
	          <th width="8%"><input type="checkbox" onclick="checkall(this, 'swapId[]')"/></th>
	          <th width="5%">ID</th>
	          <th width="10%">兑换者</th>
	          <th width="25%">礼品名称</th>
	          <th width="10%">兑换积分</th>
	          <th width="15%">兑换日期</th>
	          <th width="7%">状态</th>
	          <th width="10%">操作</th>
            </tr>
		<!--{loop $swapList $v}-->
		<tr>
			<td>
			<!--{if $v[status]==GODHOUSE_STATUS_UNVERIFIED}-->
				<input type="checkbox" name="swapId[]" value="{$v[swapId]}"/>
			<!--{/if}-->
			</td>
			<td>{$v[swapId]}</td>
			<td>{$v[userName]}</td>
			<td><a href="{GODHOUSE_DOMAIN_WWW}gifts-view-$v[giftsId].htm" target="_blank">{$v[title]}</a></td>
			<td>{$v[credit]}</td>
			<td>{$v[createdTime]}</td>
			<td>{$v[statusName]}</td>
			<td>
				<!--{if $v[status]==GODHOUSE_STATUS_UNVERIFIED}-->
				<a href="swap-status-{$v[swapId]}-{GODHOUSE_STATUS_VERIFIED}.htm">审核</a> 
				<!--{/if}-->
				<!--{if $v[status]==GODHOUSE_STATUS_VERIFIED}-->
				<a href="swap-status-{$v[swapId]}-{GODHOUSE_STATUS_COMPLETED}.htm">完成</a> 
				<!--{/if}-->
				<!--{if $v[status]==GODHOUSE_STATUS_UNVERIFIED}-->
				<a href="swap-delete-{$v[swapId]}.htm" onclick="return confirm('您确定删除吗？');">删除</a>
				<!--{/if}-->
			</td>
		</tr>
		<!--{/loop}-->
		<tr>
			<td colspan="10" align="left" style="padding:5px 5px;"><input type="submit" name="submitTo" value=" 删除 " class="bigButton" /></td>
		</tr>
		<tr>
			<td colspan="10">$multipage</td>
		</tr>
	      </table>
      </form>
	</div>
</div>
{template footer}